package com.mls.fivedistrict.server.impl;

import com.baomidou.mybatisplus.mapper.Condition;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.mls.fivedistrict.pojo.GoodsOrderPayIntegral;
import com.mls.fivedistrict.dao.GoodsOrderPayIntegralMapper;
import com.mls.fivedistrict.server.GoodsOrderPayIntegralService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单支付的积分 服务实现类
 * </p>
 *
 * @author Five Team
 * @since 2018-06-21
 */
@Service
public class GoodsOrderPayIntegralServiceImpl extends ServiceImpl<GoodsOrderPayIntegralMapper, GoodsOrderPayIntegral> implements GoodsOrderPayIntegralService {

    @Override
    public GoodsOrderPayIntegral selectGoodsOrderPayIntegralByOrder(Long orderId) {
        Wrapper wrapper = Condition.create();
        wrapper.eq("order_id", orderId);
        GoodsOrderPayIntegral goodsOrderPayIntegral = selectOne(wrapper);
        return goodsOrderPayIntegral;
    }
}
